﻿@model MyMVCDemo.Models.EF.T001好友表

@{
    ViewData["Title"] = "Detail";
}

<h1>Detail</h1>

<div>
    <h4>T001好友表</h4>
    <hr />
    <dl class="row">
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Id)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Id)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Qq号)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Qq号)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.姓名)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.姓名)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.电话)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.电话)
        </dd>
    </dl>
</div>
<div>
    <a asp-action="Edit" asp-route-id="@Model.Id">编辑</a>

    <a asp-action="Delete" asp-route-id="@Model.Id" class="myconfirm">简单删除</a>

    <form asp-action="Delete2">
        <div class="form-group">
            <!--此处id不能显示在用户界面上-->
            @Html.HiddenFor(m => m.Id)
            <input type="submit" value="复杂删除" class="btn btn-primary myconfirm" />
        </div>
    </form>

    <a asp-action="List">返回列表</a>
</div>

